package spring.cloud.tasks.core.tag.service;

import spring.cloud.tasks.metadata.api.common.PageResult;
import spring.cloud.tasks.metadata.api.tag.entity.TagEntity;

import java.util.List;
import java.util.Set;

/**
 * Created by xiongpu on 2019/8/14.
 */
public interface TagService {
    void insert(TagEntity tagEntity);

    void delete(String tagName);

    void update(TagEntity tagEntity) throws Exception;

    TagEntity selectByTagName(String tagName);

    List<TagEntity> selectListAll();

    List<TagEntity> selectListByNames(Set<String> allTagNames);

    PageResult<TagEntity> selectListByPage(TagEntity tagEntity);
}
